# config_loader.py
import yaml
import os

# 获取当前文件所在目录
current_dir = os.path.dirname(os.path.abspath(__file__))

# 构造配置文件路径
config_path = os.path.join(current_dir, "config.yml")

def load_config():
    path = config_path
    with open(path, 'r') as f:
        return yaml.safe_load(f)

config = load_config()